#include "controlstate.h"

ControlState::ControlState() :
    m_eState(ControlState::eState_Init)
{
}

ControlState::E_CONTROL_STATE ControlState::getState()
{
  boost::mutex::scoped_lock lock(m_mAccess);
  return m_eState;
}

ControlState::E_CONTROL_STATE ControlState::setState(E_CONTROL_STATE p_eState)
{
  boost::mutex::scoped_lock lock(m_mAccess);
  m_eState=p_eState;
  return p_eState;
}
